import {API} from '@/utils/axios'

export const createModelColumn = (params: any) => {
    return API.post('/api/add/model-columns', params)
}

export const updateModelColumn = (params: any) => {
    return API.post(`/api/update/models/${params.id}`, params)
}


export const validateModelColumnName = (params: any) => {
    return API.post('/api/validate/model-column-names', params)
}

export const validateModelColumnDisplayName = (params: any) => {
    return API.post('/api/validate/model-column-display-names', params)
}

export const pageModelColumn = (params: any) => {
    return API.get('/api/page/model-columns', {params})
}

export const getModelColumn = (params: any) => {
    return API.get(`/api/info/models/${params.id}`)
}
